package com.ycb.book.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

//书籍所有信息
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class Book {
    //书籍id
    private Long id;
    //卖书人用户id
    private Long UserId;
    //商品分类
    private Long category;
    //书籍名称
    private String name;
    //书籍图片
    private String image;
    //书籍简介
    private String msg;
    //书籍价格
    private Integer price;
    //书籍出售状态 1代表出售中，0代表已出售
    private Integer status;
    //发布时间
    private LocalDateTime createTime;
    //更新时间
    private LocalDateTime updateTime;

    //书籍修改人信息(拿取当前操作用户id)
    private Long updateUser;
}
